import type { ChatMessage } from "@/types";
import axios from '@/axios';

export async function chat(messageList: ChatMessage[], value: any): Promise<string> {
  try {
    const result = await axios.post('/question', {
      data: value,
    });
    return result.data;
  } catch (error) {
    throw error
  }
}
